<html>
<head><meta charset="utf-8"><title>get function signature - use mod · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/get.20function.20signature.20-.20use.20mod.html">get function signature - use mod</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="230598037"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/get%20function%20signature%20-%20use%20mod/near/230598037" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> BaSh <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/get.20function.20signature.20-.20use.20mod.html#230598037">(Mar 16 2021 at 22:00)</a>:</h4>
<p>How do I get a function signature by looking at the method call? I'm trying to do a source to source transformation using AST produced by <code>syn</code> crate (parse_file).  For ex: <code>let _ = fn_call(x, y, z);</code> However, I'm not able to get the signature, if the fn_call is not defined in the source file and if the types of x, y, z are implicit. How can I get this info with the help of compiler?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>